import React, { useState } from 'react'
import useFn from './xxx'
export default function Registe() {
  const { username, password, repassword, handle, pswHandle, rePswHandle } =
    useFn()
  return (
    <form>
      用户名:
      <input type="text" value={username} onChange={handle} />
      <br />
      密码:
      <input
        type="password"
        autoComplete="true"
        value={password}
        onChange={pswHandle}
      />
      <br />
      确认密码:
      <input
        type="password"
        autoComplete="true"
        value={repassword}
        onChange={rePswHandle}
      />
      <br />
      <button>注册</button>
    </form>
  )
}
